﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace IRCServer.Entities
{
    public enum ConnectionState
    {
        NotRegistered,
        Registered
    };

    public class ClientSession : SessionBase
    {
        public ClientSession() : base()
        {
            this.ConnectionState = Entities.ConnectionState.NotRegistered;
        }

        public int ClientID { get; set; }

        public User User { get; set; }

        public ConnectionState ConnectionState { get; set; }

        public override bool Equals(object obj)
        {
            ClientSession session = (ClientSession)obj;
            return this.ClientID == session.ClientID;
        }
    }
}
